//获取外贸基础数据
import axios from "axios";
import {ElMessage} from "element-plus";

export default async ()=>{
    try {
        const response = await axios.post('http://localhost:8888/freight_forwarder/get_one_month')
        if (response.data.code === '00000'){
            return response.data.data || []
        }else {
            ElMessage.error(response.data.message)
        }
    }catch (error) {
        console.log(error.message)
    }
}